﻿#region Legal notice
/*
 * This file is part of EPPLib.
 * Copyright 2010, 2011 
 * Gianluca Esposito (info@gianlucaesposito.it)
 * ----------------------------------------------------------------------------
 * EPPLib is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either version 2.1 of the License, or
 * (at your option) any later version.
 * 
 * EPPLib is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with Nome-Programma; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
#endregion

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;

namespace EPPLib.Data
{
    public class DomainDataObject : BaseDataObject
    {
        #region Members
        private int _internalID;
        private Guid _ownerID;
        private string _roid;
        private string _name;
        private string _currentRegistrar;
        private string _createRegistrar;
        private string _updateRegistrar;
        private DateTime? _createDate;
        private DateTime? _updateDate;
        private DateTime? _deleteDate;
        private DateTime? _expireDate;
        private DateTime? _transferDate;
        private string _status;
        private string _authInfo;

        private string _registrant;
        private string _tech;
        private string _admin;

        private HostDataCollection _hosts;
        #endregion

        #region Properties
        public int InternalID { get { return _internalID; } set { _internalID = value; } }
        public Guid OwnerID { get { return _ownerID; } set { _ownerID = value; } }
        public string ROID { get { return _roid; } set { _roid = value; } }
        public string Name { get { return _name; } set { _name = value; } }
        public string CurrentRegistrar { get { return _currentRegistrar; } set { _currentRegistrar = value; } }
        public string CreateRegistrar { get { return _createRegistrar; } set { _createRegistrar = value; } }
        public string UpdateRegistrar { get { return _updateRegistrar; } set { _updateRegistrar = value; } }
        public DateTime? CreateDate { get { return _createDate; } set { _createDate = value; } }
        public DateTime? UpdateDate { get { return _updateDate; } set { _updateDate = value; } }
        public DateTime? DeleteDate { get { return _deleteDate; } set { _deleteDate = value; } }
        public DateTime? ExpireDate { get { return _expireDate; } set { _expireDate = value; } }
        public DateTime? TransferDate { get { return _transferDate; } set { _transferDate = value; } }
        public string Status { get { return _status; } set { _status = value; } }
        public string AuthInfo { get { return _authInfo; } set { _authInfo = value; } }
        public string Registrant { get { return _registrant; } set { _registrant = value; } }
        public string Tech { get { return _tech; } set { _tech = value; } }
        public string Admin { get { return _admin; } set { _admin = value; } }
        public HostDataCollection Hosts { get { return _hosts; } set { _hosts = value; } }
        #endregion

        #region Constructor(s)
        public DomainDataObject()
        {
            _ownerID = Guid.Empty;
            _internalID = 0;
            _roid = string.Empty;
            _name = string.Empty;
            _currentRegistrar = string.Empty;
            _updateRegistrar = string.Empty;
            _createRegistrar = string.Empty;
            _createDate = null;
            _updateDate = null;
            _deleteDate = null;
            _expireDate = null;
            _status = string.Empty;
            _authInfo = string.Empty;
            _registrant = string.Empty;
            _tech = string.Empty;
            _admin = string.Empty;
            _hosts = new HostDataCollection();
        }
        #endregion
    }
}
